import request from '@/utils/request'

// 查询生产标签列表
export function listLabelTask(query) {
    return request({
        url: '/mes/pro/labeltask/list',
        method: 'get',
        params: query
    })
}

// 查询生产标签详细
export function getLabelTask(id) {
    return request({
        url: '/mes/pro/labeltask/' + id,
        method: 'get'
    })
}

// 新增生产标签
export function addLabelTask(data) {
    return request({
        url: '/mes/pro/labeltask',
        method: 'post',
        data: data
    })
}

// 修改生产标签
export function updateLabelTask(data) {
    return request({
        url: '/mes/pro/labeltask',
        method: 'put',
        data: data
    })
}

// 删除生产标签
export function delLabelTask(id) {
    return request({
        url: '/mes/pro/labeltask/' + id,
        method: 'delete'
    })
}
